﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MainLayout.Master" AutoEventWireup="true" CodeBehind="FeedBack.aspx.cs" Inherits="DigitalAnts.FeedBack" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>

<%@ Register src="webUserControl/SideBarRight.ascx" tagname="SideBar" tagprefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="content-bg">
		<div class="page">

			<div class="main-container col2-right-layout">
								<div class="main">
					<div class="col-main">
												<div id="messages_product_view"></div>
<div class="page-title">
    <h1>Liên Hệ</h1>
</div>
    <div class="fieldset">
        <h2 class="legend">Thông tin liên hệ</h2>

        <ul class="form-list">
            <li class="fields">
                <div class="field">
                    <label for="name" class="required">Tên đầy đủ
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                ControlToValidate="txtFullName" ErrorMessage="*" ValidationGroup="fed"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtFullName" runat="server" ValidationExpression="^[\s\S]{9,30}$" Text="9-30 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="fed" />
                    </label>
                    <div class="input-box">
                        <asp:TextBox ID="txtFullName" CssClass="input-text required-entry" runat="server"/>
                    </div>
                </div>

                <div class="field">
                    <label for="email" class="required">Email 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                                ControlToValidate="txtEmail" ErrorMessage="*" ValidationGroup="fed"></asp:RequiredFieldValidator>
                                                
                    <asp:RegularExpressionValidator ID="regEM2" runat="server" 
                                                    ControlToValidate="txtEmail" ErrorMessage="Email không đúng kiểu." 
                                                    SetFocusOnError="True" ValidationGroup="fed"
                                                    ValidationExpression="^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$"></asp:RegularExpressionValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ControlToValidate="txtEmail" runat="server" ValidationExpression="^[\s\S]{9,30}$" Text="9-50 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="fed" />                                
                                                    </label>
                    <div class="input-box">
                        <asp:TextBox ID="txtEmail" CssClass="input-text required-entry" runat="server"/>
                    </div>
                </div>
            </li>
            <li>

                <label for="telephone">Điện thoại <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                                ControlToValidate="txtPhone" ErrorMessage="*" ValidationGroup="fed"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="regEM4" runat="server" 
                                                    ControlToValidate="txtPhone" ErrorMessage="Chỉ được nhập số." 
                                                    SetFocusOnError="True" 
                ValidationExpression="^\d+$" ValidationGroup="fed"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" ControlToValidate="txtPhone" runat="server" ValidationExpression="^[\s\S]{9,12}$" Text="9-12 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="fed" />
                </label>
                <div class="input-box">
                        <asp:TextBox ID="txtPhone" CssClass="input-text required-entry" runat="server"/>
                </div>
            </li>
            <li class="wide">

                <label for="telephone">Tiêu đề <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                ControlToValidate="txtTitle" ErrorMessage="*" ValidationGroup="fed"></asp:RequiredFieldValidator>
                 <asp:RegularExpressionValidator ID="RegularExpressionValidator4" ControlToValidate="txtTitle" runat="server" ValidationExpression="^[\s\S]{9,100}$" Text="9-100 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="fed" />
                                                </label>
                <div class="input-box">
                    <asp:TextBox ID="txtTitle" CssClass="input-text required-entry" runat="server"/>
                </div>
            </li>
            <li class="wide">
                <label for="comment" class="required">Nội dung
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                                ControlToValidate="txtContent" ErrorMessage="*" ValidationGroup="fed"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" ControlToValidate="txtContent" runat="server" ValidationExpression="^[\s\S]{50,1000}$" Text="100-1000 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="fed" />
                </label>
                
                <div class="input-box" id="multi">
                    
                <asp:TextBox ID="txtContent" runat="server" class="input-text required-entry" TextMode="MultiLine" CssClass="multi"/>
                </div>
            </li>
        </ul>
    </div>
    <div class="buttons-set">
        <p class="required">* Không được để trống</p>

        <asp:Button runat="server" ID="btSubmit" Text="Gửi liên hệ"  ValidationGroup="fed"
            onclick="btSubmit_Click"/>
    </div>
					</div>
                    <uc3:SideBar ID="SideBar1" runat="server" />
                    </div></div></div></div>
</asp:Content>
